cmake_minimum_required(VERSION 2.8)
project(topic_recver)

find_package(catkin REQUIRED COMPONENTS
    roscpp
	topic_tools
	bsm_msgs
	topic_core
)

find_package(yaml-cpp REQUIRED)
find_library(BZ2_LIBRARY bz2 REQUIRED)

catkin_package(
	INCLUDE_DIRS include
	LIBRARIES ${PROJECT_NAME}
	CATKIN_DEPENDS roscpp topic_tools bsm_msgs
	topic_core
)

include_directories(
	include
	${catkin_INCLUDE_DIRS}
)

add_executable(${PROJECT_NAME}
	src/udp_receiver.cpp
	src/topic_receiver.cpp
)

add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS})

target_link_libraries(${PROJECT_NAME}
	${catkin_LIBRARIES}
	${BZ2_LIBRARY}
	${OPENFEC_LIBRARY}

)
